package com.tablefood.domain;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * ShopProduct entity. @author MyEclipse Persistence Tools
 */

public class ShopProduct implements java.io.Serializable {

	// Fields

	private Long productid;
	private ShopCategory shopCategory;
	private String title;
	private String descr;
	private Long num;
	private Double price;
	private String cover;
	private String pics;
	private String issale;
	private Double saleprice;
	private String ishot;
	private String ison;
	private String istui;
	private String state;
	private Timestamp createTime;
	private Timestamp updateTime;
	private Set shopCarts = new HashSet(0);
	private Set shopOrderDetails = new HashSet(0);

	// Constructors

	/** default constructor */
	public ShopProduct() {
		title = "无";
		descr = "无";
		num = (long) 0 ;
		price = 0.00;
		cover = "无";
		pics = "无";
		issale ="0";
		saleprice = 0.00;
		ishot = "0";
		ison = "0";
		istui = "0";
		state = "0";
		createTime = new Timestamp(System.currentTimeMillis()); 
		updateTime = new Timestamp(System.currentTimeMillis()); 
	}

	/** minimal constructor */
	public ShopProduct(ShopCategory shopCategory, String title, Long num,
			Double price, String cover, String issale, Double saleprice,
			String ishot, String ison, String istui, String state,
			Timestamp createTime, Timestamp updateTime) {
		this.shopCategory = shopCategory;
		this.title = title;
		this.num = num;
		this.price = price;
		this.cover = cover;
		this.issale = issale;
		this.saleprice = saleprice;
		this.ishot = ishot;
		this.ison = ison;
		this.istui = istui;
		this.state = state;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	/** full constructor */
	public ShopProduct(ShopCategory shopCategory, String title, String descr,
			Long num, Double price, String cover, String pics, String issale,
			Double saleprice, String ishot, String ison, String istui,
			String state, Timestamp createTime, Timestamp updateTime,
			Set shopCarts, Set shopOrderDetails) {
		this.shopCategory = shopCategory;
		this.title = title;
		this.descr = descr;
		this.num = num;
		this.price = price;
		this.cover = cover;
		this.pics = pics;
		this.issale = issale;
		this.saleprice = saleprice;
		this.ishot = ishot;
		this.ison = ison;
		this.istui = istui;
		this.state = state;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.shopCarts = shopCarts;
		this.shopOrderDetails = shopOrderDetails;
	}

	// Property accessors

	public Long getProductid() {
		return this.productid;
	}

	public void setProductid(Long productid) {
		this.productid = productid;
	}

	public ShopCategory getShopCategory() {
		return this.shopCategory;
	}

	public void setShopCategory(ShopCategory shopCategory) {
		this.shopCategory = shopCategory;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescr() {
		return this.descr;
	}

	public void setDescr(String descr) {
		this.descr = descr;
	}

	public Long getNum() {
		return this.num;
	}

	public void setNum(Long num) {
		this.num = num;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getCover() {
		return this.cover;
	}

	public void setCover(String cover) {
		this.cover = cover;
	}

	public String getPics() {
		return this.pics;
	}

	public void setPics(String pics) {
		this.pics = pics;
	}

	public String getIssale() {
		return this.issale;
	}

	public void setIssale(String issale) {
		this.issale = issale;
	}

	public Double getSaleprice() {
		return this.saleprice;
	}

	public void setSaleprice(Double saleprice) {
		this.saleprice = saleprice;
	}

	public String getIshot() {
		return this.ishot;
	}

	public void setIshot(String ishot) {
		this.ishot = ishot;
	}

	public String getIson() {
		return this.ison;
	}

	public void setIson(String ison) {
		this.ison = ison;
	}

	public String getIstui() {
		return this.istui;
	}

	public void setIstui(String istui) {
		this.istui = istui;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	public Set getShopCarts() {
		return this.shopCarts;
	}

	public void setShopCarts(Set shopCarts) {
		this.shopCarts = shopCarts;
	}

	public Set getShopOrderDetails() {
		return this.shopOrderDetails;
	}

	public void setShopOrderDetails(Set shopOrderDetails) {
		this.shopOrderDetails = shopOrderDetails;
	}

}